*{ You can use plain selenium command using the selenium tag }*
//Prepare tests sample
%{
	DataBaseInit.initTestDataBase();
}%

#{selenium}
    // Open the home page, and check that no error occured
    open('/login')
    waitForPageToLoad(1000)
    assertNotTitle('Application error')
	assertTitle('Login')
	type('username','pgalvao')
	type('password','pgalvao')
	clickAndWait('signin')
	assertTitle('Collaborator Profile')
#{/selenium}

#{selenium}
    // Open the home page, and check that no error occured
    open('/login')
    waitForPageToLoad(1000)
    assertNotTitle('Application error')
	assertTitle('Login')
	
	clickAndWait('signin')
	assertTitle('Login')
	assertTextPresent('Erreur durant l'authentification.')
#{/selenium}